import {reactive} from 'vue'
export const  useDialog=()=>{
  const dialog = reactive({
    title: '',
    visible: false,
    width: 630,
    height: 300
})

const onClose = ()=>{
  dialog.visible = false
}
const onConfirm = () => {
  dialog.visible = false;
}
const onShow = ()=>{
  dialog.visible = true
}
return {
  dialog,
  onClose,
  onConfirm,
  onShow
}
}